//
//  UILabel+Extension.swift
//  weibo
//
//  Created by ForeverOSS on 16/2/14.
//  Copyright © 2016年 foreveross. All rights reserved.
//

import UIKit

extension UILabel{
    
    /// 遍历构造函数
    ///
    /// - parameter title:    title
    /// - parameter fontSize: fontSize
    /// - parameter color:    color
    ///
    /// - returns: UILabel
    convenience init(title: String, fontSize: CGFloat, color: UIColor) {
        self.init()
        
        text = title
        font = UIFont.systemFontOfSize(fontSize)
        textColor = color
        numberOfLines = 0
        textAlignment = NSTextAlignment.Center
        
        sizeToFit()
    }
    
}
